﻿using System;
using Microsoft.Practices.Unity;

using SharedGenomics.Core.Configuration;
using SharedGenomics.Workbench.Models;

namespace ROWorkbench
{
    public class SettingsDependentsContainerConfigurationStrategy : IContainerConfigurationStrategy
    {
        public void Configure(ContainerConfigurationContext context)
        {
            var container = context.Container;

            var coverflowUriResolver = new CoverflowUriResolver(Properties.Settings.Default.CoverflowPageUrl);
            container.RegisterInstance<ICoverflowUriResolver>(coverflowUriResolver, new ContainerControlledLifetimeManager());
        }
    }
}
